package com.wngbms.netty._12dubbo.client;

import com.wngbms.netty._12dubbo.HelloService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ClientBootstrap {

    public static final String providerName = "HelloService#hello#";

    public static void main(String[] args) throws InterruptedException {

        NettyClient client = new NettyClient();
        HelloService helloService = (HelloService) client.getBean(HelloService.class, providerName);
        String sony = helloService.hello("sony");
        log.info("remote call result:{}", sony);
       /* while (true) {
            Thread.sleep(2000);
        }*/
    }

}
